<?php
namespace app\admin\controller;
use app\admin\logic\MenuLogic;
/**
 * @Author: K.EL
 * @Date:   2020-07-20 00:36:08
 * @Last Modified by:   K.EL
 * @Last Modified time: 2020-07-21 17:03:03
 */
class Menu extends Base{
	function getInfo(){
		return MenuLogic::getInfo();
	}
	function getTreeLists(){
		return MenuLogic::getTreeLists();
	}
	//获取列表
	function getLists(){
		// echo $this->request->role_ids.';'.$this->request->is_admin;
		if($this->request->is_admin==1){
			//超级管理员
			return MenuLogic::getSupMenu();
		}else{
			//角色管理员
			return MenuLogic::getRoleMenu($this->request->role_ids);
		}
	}
	//新增
	function add(){
		return MenuLogic::add();
	}
	//编辑
	function edit(){
		return MenuLogic::edit();
	}
}